package com.example.guiguihomemedical.mapper;

import com.example.guiguihomemedical.entity.dto.RecordAdd;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RecordAddMapper {
    @Insert("INSERT INTO userclassification (idcard, peopleid) VALUES (#{idcart},#{id})")
    void insertClassification(String idcart, Integer id);

    @Insert("INSERT INTO record (idcard, name, nation, residence, detailedresidence, time, doctorid, phone,sex,type) " +
            "VALUES (#{idcard}, #{name}, #{nation}, #{residence}, #{detailedresidence}, #{time}, #{doctorid}, " +
            "#{phone},#{sex},0)")
    void insertRecord(RecordAdd recordAdd);
}
